package com.ruoyi.nongjt.domain.dto;

import lombok.Data;

import java.util.List;

/**
 * 合格证统计查询DTO
 * 
 * @author ruoyi
 * @date 2024-01-01
 */
@Data
public class CertificateStatisticsDTO
{
    /** 区县代码 */
    private String districtCode;

    /** 年份 */
    private String year;

    /** 月份 */
    private String month;

    /** 合格证开具数量统计 */
    private List<MonthlyStatistics> monthlyStatistics;

    /** 主要农产品数量统计 */
    private List<ProductStatistics> productStatistics;

    /** 街道/镇合格证打印数量统计 */
    private List<StreetStatistics> streetStatistics;

    /** 主体合格证开具数量排名 */
    private List<EntityStatistics> entityStatistics;

    /** 街道/镇用户数量统计 */
    private List<StreetUserStatistics> streetUserStatistics;

    /** 每日合格证开具实时数据 */
    private List<DailyStatistics> dailyStatistics;

    @Data
    public static class MonthlyStatistics {
        private String month;
        private Long count;
    }

    @Data
    public static class ProductStatistics {
        private String productName;
        private Long count;
    }

    @Data
    public static class StreetStatistics {
        private String streetName;
        private Long count;
        private Double percentage;
    }

    @Data
    public static class EntityStatistics {
        private String entityName;
        private Long count;
    }

    @Data
    public static class StreetUserStatistics {
        private String streetName;
        private Long userCount;
        private Double percentage;
    }

    @Data
    public static class DailyStatistics {
        private String day;
        private Long count;
    }
}
